import java.util.Scanner;
public class Foot {
public static void main(String[] args){
int foot;
double inch;
Scanner in =new Scanner(System.in);
foot = in.nextInt();
inch = in.nextInt();
//inch = in.nextDouble();

System.out.println("foot="+foot+",inch="+inch);
System.out.println((foot+inch/12)*0.3048*100);
System.out.println((int)((foot+inch/12)*0.3048*100));

}
}
